


# 播放源  进行视频解析的
aa="""              {"name":"纯净1","url":"https://z1.m1907.cn/?jx=","t":"m"},
                    {"name":"B1","url":"https://vip.parwix.com:4433/player/?url=","t":"m"},
                    {"name":"爱跟","url":"https://vip.2ktvb.com/player/?url=","t":"m"},
                    {"name":"爱豆","url":"https://jx.aidouer.net/?url="},
                    {"name":"BL","url":"https://vip.bljiex.com/?v="},
                    {"name":"冰豆","url":"https://api.qianqi.net/vip/?url="},
                    {"name":"百域","url":"https://jx.618g.com/?url="},
                    {"name":"CK","url":"https://www.ckplayer.vip/jiexi/?url="},
                    {"name":"CHok","url":"https://www.gai4.com/?url="},
                    {"name":"ckmov","url":"https://www.ckmov.vip/api.php?url="},
                    {"name":"大白","url":"https://api.myzch.cn/?url="},
                    {"name":"大幕","url":"https://jx.52damu.com/dmjx/jiexi.php?url="},
                    {"name":"大树","url":"https://jx.wlssys.xyz/vip.php?url="},
                    {"name":"迪奥","url":"https://123.1dior.cn/?url="},
                    {"name":"福星","url":"https://jx.popo520.cn/jiexi/?url="},
                    {"name":"跟剧","url":"https://www.5igen.com/dmplayer/player/?url="},
                    {"name":"H8","url":"https://www.h8jx.com/jiexi.php?url="},
                    {"name":"江湖","url":"https://api.jhdyw.vip/?url=","t":"m"},
                    {"name":"解析","url":"https://ckmov.ccyjjd.com/ckmov/?url="},
                    {"name":"解析la","url":"https://api.jiexi.la/?url="},
                    {"name":"久播","url":"https://jx.jiubojx.com/vip.php?url="},
                    {"name":"九八","url":"https://jx.youyitv.com/?url="},
                    {"name":"可乐","url":"https://jx.keleapi.com/?url=","t":"m"},
                    {"name":"LE","url":"https://lecurl.cn/?url="},
                    {"name":"懒猫","url":"https://api.lanmaody.com/dm/?url=","t":"m"},
                    {"name":"老板","url":"https://vip.laobandq.com/jiexi.php?url="},
                    {"name":"乐多","url":"https://api.leduotv.com/wp-api/ifr.php?isDp=1&vid=","t":"m"},
                    {"name":"乐喵","url":"https://jx.hao-zsj.cn/vip/?url="},
                    {"name":"Mao","url":"https://qd.hxys.tv/m3u8.php?url="},
                    {"name":"M3U8","url":"https://jx.m3u8.tv/jiexi/?url="},
                    {"name":"MUTV","url":"https://jiexi.janan.net/jiexi/?url="},
                    {"name":"明日","url":"https://jx.yingxiangbao.cn/vip.php?url="},
                    {"name":"沐白","url":"https://www.miede.top/jiexi/?url=","t":"m"},
                    {"name":"磨菇","url":"https://jx.wzslw.cn/?url="},
                    {"name":"诺诺","url":"https://www.ckmov.com/?url="},
                    {"name":"诺讯","url":"https://www.nxflv.com/?url="},
                    {"name":"OK","url":"https://okjx.cc/?url="},
                    {"name":"PM","url":"https://www.playm3u8.cn/jiexi.php?url="},
                    {"name":"盘古","url":"https://www.pangujiexi.cc/jiexi.php?url="},
                    {"name":"奇米","url":"https://qimihe.com/?url="},
                    {"name":"七哥","url":"https://jx.mmkv.cn/tv.php?url="},
                    {"name":"全民","url":"https://jx.quanmingjiexi.com/?url="},
                    {"name":"RDHK","url":"https://jx.rdhk.net/?v=","t":"m"},
                    {"name":"SSAMAO","url":"https://www.ssamao.com/jx/?url="},
                    {"name":"SMYS","url":"https://jxx.smys8.cn/index.php?url="},
                    {"name":"思云","url":"https://jx.ap2p.cn/?url="},
                    {"name":"思古","url":"https://api.sigujx.com/?url="},
                    {"name":"思古2","url":"https://api.bbbbbb.me/jx/?url="},
                    {"name":"思古3","url":"https://jsap.attakids.com/?url="},
                    {"name":"淘电影","url":"https://jx.vodjx.top/vip/?url="},
                    {"name":"听乐","url":"https://jx.dj6u.com/?url=","t":"m"},
                    {"name":"维多","url":"https://jx.ivito.cn/?url="},
                    {"name":"虾米","url":"https://jx.xmflv.com/?url="},
                    {"name":"小蒋","url":"https://www.kpezp.cn/jlexi.php?url="},
                    {"name":"小狼","url":"https://jx.yaohuaxuan.com/?url="},
                    {"name":"星驰","url":"https://vip.cjys.top/?url="},
                    {"name":"YiTV","url":"https://jiexi.us/?url="},
                    {"name":"月亮","url":"https://api.yueliangjx.com/?url="},
                    {"name":"云点播","url":"https://api.iopenyun.com:88/vip/?url="},
                    {"name":"云端","url":"https://jx.ergan.top/?url="},
                    {"name":"云析","url":"https://jx.yparse.com/index.php?url="},
                    {"name":"0523","url":"https://go.yh0523.cn/y.cy?url="},
                    {"name":"17云","url":"https://www.1717yun.com/jx/ty.php?url="},
                    {"name":"4K","url":"https://jx.4kdv.com/?url=","t":"m"},
                    {"name":"66","url":"https://api.3jx.top/vip/?url="},
                    {"name":"116","url":"https://jx.116kan.com/?url="},
                    {"name":"200","url":"https://vip.66parse.club/?url="},
                    {"name":"8090","url":"https://www.8090g.cn/?url="}
"""


url="https://v.qq.com/x/cover/mzc00200gw2ez0b/a0042l9sjdv.html"



"""
作业讲解

出现问题   1
输入 链接按回车 会出现 直接进入浏览器的现像   空格   
出现问题   2
打包 出现 没有找到  原因打包的的时候 要确认控制台是在有需要被打包的文件的目录才行
大白话 要进行路径指定     
解决方法1   可以通过在任意路径打开终端   但是在pyinstaller -F 指定py文件的绝对路径       
解决方法2   可以在py文件对应的文件夹下面进行打包  pyinstaller -F  xxx.py 

"""
# 1获取源的名称 以及 源的链接
import re
# 浏览器模块
import webbrowser
name=re.findall('name":"(.*?)"',aa)
yuan=re.findall('"url":"(.*?)"',aa)
print(yuan)
# i="索引"
# data(名字,源)
for i,data in enumerate(zip(name,yuan)):
    print(data[0]+":"+data[1],"序号："+str(i+1))
while True:
    num = input("继续请扣1,退出请扣2:")
    if num=="1":
        try:
            while True:
                link=input("请输入浏览器导航栏上的视频链接：")
                if "http" in link:
                    xuhao=int(input("请选择播放的序号:"))
                    #    对我们的视频进拼接
                    urlping=yuan[xuhao-1]+link
                    webbrowser.open(urlping,new=0,autoraise=True)
                    break
                    #让浏览打开已经拼接好的url
                else:
                    print("您输入的不是一个链接!")
        except:
            pass
    elif num=="2":
        print("拜拜")
        break
    else:
        print("请根据提示输入！")
# 进行软件的打包
# pyinstaller -F 文件名.py
# pip install pyinstaller
# 打包好的exe文件在同文件目录下的dist文件夹下






























